<?php
class CommandResult {
	/**
	 * @var string
	 */
	public $error;
	
	/**
	 * @var integer
	 */
	public $errno;
	
	/**
	 *
	 */
	function __construct(){
		$this->errno = XErrorCode::NONE;
		$this->error = '';
	}
	
	/**
	 * @return bool
	 */
	public function hasError(){
		return !(XErrorCode::NONE == $this->errno);
	}
}